#pragma once
#include <SFML/Graphics/Font.hpp>
#include <nice2d/component.h>

class FontManager : public Component
{
public:
    std::shared_ptr<sf::Font> loadFromFile(const std::string &file);
    void removeResource(const std::string &name);
private:
    std::map<std::string, std::shared_ptr<sf::Font>> resources;
};
